﻿using System;

namespace TypeBuilderFx.Core.Emitters
{
    /// <summary>Enumeration of the different way for a DAC to connect to a database.</summary>
    public enum ConnectionMode
    {
        /// <summary>
        /// A connection string name (refering to the connection string section in the config file) to the database is passed
        /// to the DAC.
        /// </summary>
        /// <remarks>This is the simplest mode.</remarks>
        ConnectionStringName,
        /// <summary>A valid connection to the database is passed to the DAC.</summary>
        /// <remarks>This mode is useful to share connections between more than one DAC or more than one method calls.</remarks>
        ValidConnection
    }
}